import request from '@/utils/request'

//资讯列表
export function getMessageList(data) {
    return request({
      url: '/spgl/SpdbNews/getList',
      method: 'post',
      data
    })
  }

//资讯详情
export function getMessageDetail(id) {
    return request({
      url: `/spgl/SpdbNews/${id}`,
      method: 'get'
    })
  }


//礼品列表
export function getPointList(data) {
  return request({
    url: '/spgl/SpdbScglGift/getList',
    method: 'post',
    data
  })
}

//礼品详情
export function getPointDetail(id) {
  return request({
    url: `/spgl/SpdbScglGift/${id}`,
    method: 'get'
  })
}

//兑换礼品
export function exchangeGift(data) {
  return request({
    url: '/spgl/SpdbScglGiftOrderInfo',
    method: 'post',
    data
  })
}

//图文点击
export function SpdbNewsClick(data) {
  return request({
    url: '/spgl/SpdbNewsClickRecord',
    method: 'post',
    data
  })
}
